package io;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;

public class ObjStore {
    public static void main(String[] args) {
        try {
            ObjectOutputStream oout=new ObjectOutputStream(new FileOutputStream("E:\\Temp\\java68\\3.txt"));
            Student s=new Student("安鹏宇",17,"136666666666");
            oout.writeObject(s);
            oout.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
